package router

import (
	"fx_swift_boss/internal/controller"
	"fx_swift_boss/pkg/middleware"
)

func AuthRouter() {
	userApiVer := miniApiVer.Group("auth", middleware.CheckAuth())
	{
		userApiVer.POST("addBoss", controller.AddBoss)
		userApiVer.POST("addAuth", controller.AddAuth)
		userApiVer.POST("addRoleAuth", controller.AddRoleAuth)
		userApiVer.POST("getAuthToUserOrRole", controller.GetAuthToUserOrRole)

		userApiVer.GET("getRoleList", controller.GetRoleList)
		userApiVer.GET("getUserAuth", controller.GetUserAuth)
		userApiVer.GET("getAccountList", controller.GetAccountList)
	}
}
